package examples.fxroot

import javafx.application.Application
import javafx.scene.Scene
import javafx.scene.layout.VBox
import javafx.stage.Stage

/**
 * Created by TK-chenbin on 2015/6/5.
 */
class Starter extends Application {
    public static void main(String[] args) {
        launch(Starter, args)
    }

    @Override
    void start(Stage primaryStage) throws Exception {
        primaryStage.title = "fx:root example application"

        def root = new VBox()

        def textField = new LabeledTextField();

        root.children << textField

        primaryStage.scene = new Scene(root, 300, 50)
        primaryStage.show()
    }
}
